 <!-- 模态框（Modal）-->
	<div class="modal-header">
		<h4 class="modal-title" translate="device.thresholdSet"></h4>
	</div>
	<div class="modal-body">
		<div class="panel-body">
			<div class="form-group " id="d">
                   <div class="col-sm-5">
                        <label class="col-lg-5 control-label" style="text-align: right;">
                            <span class="text-danger">*</span>
                            <span translate="">参数</span>
                        </label>
                        <div class="col-lg-6">
                            <select class="form-control" id="searchType" ng-model="vm.query.searchType" 
                    				uib-tooltip="{{'equipment.status' | translate}}">
                        		<option value="status0" translate="vs.monitorRecord.online"></option>
                        		<option value="status1" translate="vs.monitorRecord.offline"></option> 
                        		<option value="status2" translate="vs.monitorRecord.fault"></option>                       		
                    		</select>
                        </div>
                    </div>
                    <div class="col-sm-5">
                        <label class="col-lg-5 control-label" style="text-align: right;">
                            <span class="text-danger">*</span>
                            <span translate="device.threshold"></span>
                        </label>
                        <div class="col-lg-6">
                            <input class="form-control" name="equipment.name" id="postCodeID" maxlength="32"
                                   ng-model="vm.post.postCode" required
                                   ng-pattern="app.reg.account"
                                   uib-tooltip="{{'common.op.remind1' | translate}}"/>
                        </div>
                    </div>
                </div>
                    <div class="col-sm-2">
                    <button class="btn btn-sm btn-default" id="addBtn"
                                    ng-click="vm.add()">
                                <i class="fa fa-plus"></i>
                    </button>
                    </div>
        	<!-- </div> -->
        </div>
		<div class="panel-footer text-right bg-light lter" style="margin-top:20px;">
        		<button type="button" class="btn btn-default" ng-click="vm.cancelDevicesetList()"
                	translate="common.cancel"></button>
        		<button type="button" class="btn btn-primary" ng-click="vm.saveDevicesetList()"
                	translate="common.confirm"></button>
    	</div>		
	</div>
<script language="javascript">
i = 1;
document.getElementById("addBtn").onclick=function(){
  document.getElementById("d").innerHTML+='<div id="div_'+i+'"><div class="col-sm-5"><label class="col-lg-5 control-label" style="text-align: right;"><span class="text-danger">*</span><span translate="">参数</span></label><div class="col-lg-6"><select class="form-control" id="searchType" ng-model="vm.query.searchType" uib-tooltip="{{'equipment.status' | translate}}"><option value="status0" translate="vs.monitorRecord.online"></option><option value="status1" translate="vs.monitorRecord.offline"></option> <option value="status2" translate="vs.monitorRecord.fault"></option>                       		</select></div></div><div class="col-sm-5"><label class="col-lg-5 control-label" style="text-align: right;"><span class="text-danger">*</span><span translate="device.threshold"></span></label><div class="col-lg-6"><input class="form-control" name="equipment.name" id="postCodeID" maxlength="32"ng-model="vm.post.postCode" required ng-pattern="app.reg.account" uib-tooltip="{{'common.op.remind1' | translate}}"/></div></div><input type="button" value="删除"  onclick="del('+i+')"/></div>';
  i = i + 1;
}
function del(o){
 document.getElementById("d").removeChild(document.getElementById("div_"+o));
}
</script>